package com.fengwan.wastesort.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.fengwan.wastesort.R
import com.fengwan.wastesort.model.Waste

/**
 * @author : Silence丶J
 * @time : 2019/7/18
 * @description :
 */
class WasteSortAdapter(data: MutableList<Waste>?) :
    BaseQuickAdapter<Waste, BaseViewHolder>(R.layout.item_waste_sort, data) {
    override fun convert(helper: BaseViewHolder, item: Waste?) {
        item?.apply {
            helper.setText(R.id.item_tv, name)
        }
    }
}